<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <link rel="icon" href="../../favicon.ico" />
    <link
      rel="canonical"
      href="https://getbootstrap.com/docs/3.4/examples/dashboard/"
    />

    <title>检索结果</title>
    <link
      href="https://v3.bootcss.com/dist/css/bootstrap.min.css"
      rel="stylesheet"
    />
    <link
      href="https://v3.bootcss.com/assets/css/ie10-viewport-bug-workaround.css"
      rel="stylesheet"
    />
    <link
      href="https://v3.bootcss.com/examples/dashboard/dashboard.css"
      rel="stylesheet"
    />
    <script src="https://v3.bootcss.com/assets/js/ie-emulation-modes-warning.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
    <script
      type="text/javascript"
      src="https://assets.pyecharts.org/assets/v5/echarts.min.js"
    ></script>
  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button
            type="button"
            class="navbar-toggle collapsed"
            data-toggle="collapse"
            data-target="#navbar"
            aria-expanded="false"
            aria-controls="navbar"
          >
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{{ url_for('index') }}">Cathy‘s Work</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="{{ url_for('index') }}">首页</a></li>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li>
              <a href="{{ url_for('result') }}">源数据展示</a>
            </li>
            <li class="active">
              <a href="{{ url_for('salary') }}">薪资对比</a>
            </li>
            <li>
              <a href="{{ url_for('skill') }}">岗位技术\类型</a>
            </li>
            <li>
              <a href="{{ url_for('area') }}">地区分布</a>
            </li>
            <li>
              <a href="{{ url_for('jobName') }}">岗位职称</a>
            </li>
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <!-- 这里放置主要内容 -->
          <div class="tubiao_group">
            <div id="bar"></div>
            <div id="sandian"></div>
          </div>
        </div>
      </div>
    </div>
    <script
      src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
      integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
      crossorigin="anonymous"
    ></script>
    <script>
      window.jQuery ||
        document.write(
          '<script src="../../assets/js/vendor/jquery.min.js"><\/script>'
        );
    </script>
    <script src="https://v3.bootcss.com/dist/js/bootstrap.min.js"></script>
    <script src="https://v3.bootcss.com/assets/js/vendor/holder.min.js"></script>
    <script src="https://v3.bootcss.com/assets/js/ie10-viewport-bug-workaround.js"></script>
    <script>
      $(function () {
        var chart = echarts.init(document.getElementById("bar"), "white", {
          renderer: "canvas",
        });
        $.ajax({
          type: "GET",
          url: "http://127.0.0.1:5000/salaryDataA",
          dataType: "json",
          success: function (result) {
            chart.setOption(result);
          },
        });
      });
    </script>
    <script>
      $(function () {
        var chart = echarts.init(document.getElementById("sandian"), "white", {
          renderer: "canvas",
        });
        $.ajax({
          type: "GET",
          url: "http://127.0.0.1:5000/salaryDataB",
          dataType: "json",
          success: function (result) {
            chart.setOption(result);
          },
        });
      });
    </script>
  </body>
  <style>
    .tubiao_group {
      display: flex;
      flex-direction: column;
    }
    #bar {
      width: 100%;
      height: 500px;
    }
    #sandian {
      width: 100%;
      height: 500px;
      margin-top: 150px;
    }
  </style>
</html>
